#include "musicTool.h"
#include "factory.h"

int main()
{
	Piano *pPiano = new Piano();
	Flute *pFlute = new Flute();
	MusicTool *pMusic;

	MusicToolPhototypeFactory fact(pPiano, pFlute);

	pMusic = fact.MakePiano();
	pMusic->play();
	delete pMusic;

	pMusic = fact.MakeFlute();
	pMusic->play();
	delete pMusic;

	return 0;
}
